import { App } from 'vue';
import StatusIndicator from './StatusIndicator/index.vue';
import NavBar from './NavBar/index.vue';
import SafeArea from './SafeArea/index.vue';

// 组件列表
const components = [
  StatusIndicator,
  NavBar,
  SafeArea,
];

// 安装方法
const install = (app: App) => {
  components.forEach(component => {
    app.component(component.name, component);
  });
};

// 导出组件
export {
  StatusIndicator,
  NavBar,
  SafeArea,
  install
};

export default {
  install
};